﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace mars_client.csharp
{
    class ServerSocket
    {
        private TcpClient client;
        private BinaryReader br;
        private BinaryWriter bw;

        public BinaryWriter Bw
        {
            get
            {
                return bw;
            }
        }

        public BinaryReader Br
        {
            get
            {
                return br;
            }
        }

        public TcpClient Client
        {
            get
            {
                return client;
            }
        }

        public ServerSocket(TcpClient client)
        {
            this.client = client;
            NetworkStream stream = this.Client.GetStream();
            this.br = new BinaryReader(stream);
            this.bw = new BinaryWriter(stream);
        }
        
    }
}
